.TagComponent {
    color: @at-white;
    cursor: default;
    background: @at-blue;
    border-radius: @at-space;
    font-size: 12px;
    display: flex;
    flex-direction: row;
    align-content: center;
    min-height: @at-space-4x;
    overflow: hidden;
    max-width: 200px;
    margin: @at-space 0;

    &:last-of-type {
        margin-right: 20px;
    }
}

.TagComponent-name {
    color: @at-white;
    margin: 2px @at-space-2x;
    align-self: center;
    /* fallback for FF < 68 which doesn't support `break-word` */
    word-break: break-all;
    word-break: break-word;

    &:hover,
    &:focus {
        color: @at-white;
    }
}

.TagComponent-icon {
    .at-mixin-VerticallyCenter();
    line-height: 20px;
    margin-left: @at-space-2x;

    &--cloud:before,
    &--aws:before,
    &--tower:before,
    &--azure_rm:before,
    {
        content: '\f0c2';
    }

    &--insights:before {
        content: '\f129';
    }

    &--net:before {
        content: '\f0e8';
    }

    &--scm:before {
        content: '\f126';
    }

    &--ssh:before {
        content: '\f084';
    }

    &--vault:before {
        content: '\f187';
    }

    &--external:before {
        content: '\f14c'
    }
}

.TagComponent-button {
    padding: 0 @at-space;
    .at-mixin-VerticallyCenter();
}

.TagComponent-button:hover {
    cursor: pointer;
    border-color: @at-color-error;
    background-color: @at-color-error;
}
